package com.distortiongames.level27.logic 
{
	/**
	 * ...
	 * @author Jefferson Wagner
	 */
	public class Statistic 
	{
		private var _name:String;
		private var _base:Number;
		private var _add:Number;
		private var _subtract:Number;
		
		public function get name():String 
		{
			return _name;
		}
		
		public function set name(value:String):void 
		{
			_name = value;
		}
		
		public function get base():Number 
		{
			return _base;
		}
		
		public function set base(value:Number):void 
		{
			_base = value;
		}
		
		public function get current() : Number {
			return _base + _increase + _decrease;
		}
		
		public function Statistic(name:String, base:Number = 0) 
		{
			this._name = name;
			this._base = base;
		}
		
		public function buff(value:Number) {
			increase += value;
		}
		
		public function debuff(value:Number) {
			decrease += value;
		}
	}
}